package com.hlk.exception;

import com.hlk.enums.ResponseStatusEnum;
import lombok.Data;

/**
 * @author hlk
 * @version 1.0
 * @date 2020-12-17 14:12
 */
@Data
public class HuaException extends RuntimeException {
    private ResponseStatusEnum responseStatusEnum;

    public HuaException() {
    }

    public HuaException(ResponseStatusEnum responseStatusEnum) {
        super("异常状态码为：" + responseStatusEnum.status()
                + "；具体异常信息为：" + responseStatusEnum.msg());
        this.responseStatusEnum = responseStatusEnum;
    }
}
